home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 49
/
Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso
/
-serious-
/
misc
/
football
/
user
/
deletenewdatafiles.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-11-29
|
1KB
|
41 lines
/* Mode=Run */
/* ***********************************************************************
DELETE NEW DATA FILES PROGRAM FOR FOOTBALL REXX SUITE
-------------------------------------------------------
Copyright Mark Naughton 1997
Version Date History
--------------------------------------------------------------------------
1.0 061097 Created to cleanup files left over from EndOfSeason.
200999 Added support for subdirectories in Data/.
**************************************************************************
Procedure
---------
1. Call 'Delete' command to delete all files in 'Data/' with '_NewData'.
************************************************************************** */
parse arg league_file
version = 1
addlib('rexxsupport.library',0,-30,0)
filelist = showdir("Data/",'D')
if filelist ~= "" then do
do i=1 to words(filelist)
name = word(filelist,i)
address command 'c:Delete >NIL: Data/'strip(name)'/#?_NewData#?'
end
end
else do
address command 'c:Delete >NIL: Data/#?_NewData#?'
end
exit